package homework;

import java.util.Scanner;

public class HomeWork11 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
        String[]strings=str.split(" ");
        System.out.println(strings[strings.length-1]);
    }
}
